package com.ljx.Service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ljx.Domain.Dish;
import com.ljx.Dto.DishDto;
import org.springframework.transaction.annotation.Transactional;

public interface DishService extends IService<Dish> {
    /**
     * 添加菜品
     * @param dishDto
     */
    @Transactional
    void addDish(DishDto dishDto);

    /**
     * 根据id查询菜品
     * @param id
     * @return
     */
    DishDto getByIdDish(Long id);


    @Transactional
    void updateDish(DishDto dishDto);
}
